@import "variables";
@import "reset";
@import "mixins";
@import "layout";
@import "rainbow";
@import "sidenav";
@import "header";
@import "button";
@import "fork";

table {
  margin-left: @quarterGutter;
  margin-right: @quarterGutter;
  width: 100%;
  td,
  th {
    padding: 5px;
  }
  thead {
    td,
    th {
      font-weight: bold;
      border-bottom: 3px solid @colorNeutralLight;
    }
  }
  tbody {
    tr {
      background: #FFF;
    }
    tr:nth-child(even) {
      background: @colorLight;
    }
    th {
      font-weight: bold;
    }
  }
}
td > samp {
  display: inline-block;
}

.sectionNav {
  padding: @quarterGutter;
  position: fixed;
  ul {
    padding: 0;
    margin: 0;
    ul {
      padding-left: @quarterGutter;
    }
    list-style: none;
  }
}

.doc {
  padding-bottom: @gutter;
  margin-bottom: @gutter * 1.6;
  border-bottom: 1px solid @colorNeutralLight;
  &:hover h2 {
    &:before {
      position: absolute;
      left: -@gutter;
      width: @gutter - 5px;
      text-align: right;
      display: block;
      content: '➤';
      color: @colorAccent;
    }
  }
  h2 {
    position: relative;
  }
  dl {
    .clearfix;
    padding: 0 0 0 @quarterGutter;
    margin: 0 0 @halfGutter @quarterGutter;
    border-left: 3px solid @colorNeutralLight;
  }

  dt,
  dd {
    display: block;
    width: auto;
    float: left;
  }
  dt {
    margin: 0 0.5em 0 0;
    clear: left;
    &:after {
      content: ":";
    }
  }
  dd:after {
    content: ", ";
    margin: 0 0.5em 0 0;
  }
  dd:last-of-type:after {
    content: '';
  }
}

.source {
  font-size: 0.8em;
}

.download {
  text-align: center;
  .btn {
    line-height: @lineHeight * 2;
  }
}

.warning {
  text-align: center;
  margin: @quarterGutter;
  padding: @quarterGutter;
  border: 1px solid lighten(@colorAccentSecond, 40%);
  background: lighten(@colorAccent, 40%);
  color: @colorAccentSecond;
  font-weight: bold;
  .border-radius(4px);
  @shadow: 0 1px 3px fade(@colorAccentDark, 20%), inset 0 -1px 3px fade(@colorLight, 40%);
  .box-shadow(@shadow);
}
